package com.itcoon.cloud.framework.i18n.config.properties;

import com.itcoon.cloud.framework.i18n.bundle.BaseBundle;
import com.itcoon.cloud.framework.i18n.bundle.ExBundle;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Collections;
import java.util.List;

/**
 * <p> </p>
 *
 * @author 俞淼霞
 * @since 2019-09-06
 */
@ConfigurationProperties(prefix = "itcoon.messages")
public class BundleMessageProperties {

    private boolean isUseCommonBundles = true;

    private List<ExBundle> exBundles = Collections.emptyList();

    private List<BaseBundle> baseBundles = Collections.emptyList();

    public boolean isUseCommonBundles() {
        return isUseCommonBundles;
    }

    public void setUseCommonBundles(boolean useCommonBundles) {
        isUseCommonBundles = useCommonBundles;
    }

    public List<ExBundle> getExBundles() {
        return exBundles;
    }

    public void setExBundles(List<ExBundle> exBundles) {
        this.exBundles = exBundles;
    }

    public List<BaseBundle> getBaseBundles() {
        return baseBundles;
    }

    public void setBaseBundles(List<BaseBundle> baseBundles) {
        this.baseBundles = baseBundles;
    }

}
